package javacore.classinface.inherit;

/* Testing inheritence at multiple level*/
class GrandFather {
	GrandFather() {
		System.out.println("Grand father");
	}
}

class Father extends GrandFather {
	Father() {
		System.out.println("Father");
	}
}

class Son extends Father {
	Son() {
		System.out.println("Son");
	}
}

public class MoreInheritecenDemo {
	public static void main(String[] args) {
		new Son();
	}
}
